import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateSystemMetricDto {
  @IsNotEmpty()
  @IsString()
  systemId: string;

  @IsNotEmpty()
  @IsString()
  name: string;

  @IsNotEmpty()
  @IsNumber()
  cpuUsage: number;

  @IsNotEmpty()
  @IsNumber()
  memoryUsage: number;

  @IsNotEmpty()
  @IsNumber()
  diskUsage: number;

  @IsNotEmpty()
  @IsNumber()
  networkUsage: number;

  @IsOptional()
  @IsString()
  region?: string;

  @IsOptional()
  @IsString()
  environment?: string;
} 